package com.springbootproduct.feignservice;

import com.springbootproduct.entity.Product;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface ProductFeignService {
    @PostMapping("listData")
    List<Product> listData(@RequestBody Product product);

    @PostMapping("updateByProduct")
    int updateByProduct(@RequestBody Product product);

    @PostMapping("save")
    int save(@RequestBody Product product);

    @GetMapping("getOne")
    Product getOne(@RequestParam("id") String id);
}
